# 调查用户梦想中的度假胜地
# 创建一个空字典，用于存储人们的姓名及其梦想的度假胜地。
responses = {}

# 设置一个标志
polling_active = True

# 使用while循环持续获得用户输入
while polling_active:
    # 提示用户输入他们的名字和梦想的度假胜地
    name = input("\nWhat's your name? ")
    place = input(f"Hello,{name},if you could visit one place in the world,where would you go? ")
    # 将用户输入存储到字典中
    responses[name] = place
    # 看看是否还有人要参与调查
    repeat = input("Would you like to let another person respond?(yes/no) ")
    if repeat == 'no':
        polling_active = False

# 调查结束，打印结果
print("\n---Poll Results---")
for name,place in responses.items():
    print(f"{name} would like to visit {place}.")